{ //=========Macro generated from canvas: c1/c1 //========= (Wed Aug 16 11:24:01 2006) by ROOT version5.08/00 TCanvas *c1 = new TCanvas("c1", "c1",32,386,500,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-0.153846,0.14,1.12821,0.54); c1->SetFillColor(10); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLeftMargin(0.16); c1->SetBottomMargin(0.15); c1->SetFrameFillColor(0); c1->SetFrameLineWidth(2); c1->SetFrameLineWidth(2); Double_t xAxis[14] = {0, 1000, 1146, 1148, 1500, 1747, 1748, 2000, 2247, 2248, 2500, 2897, 2898, 3000}; TH1* EvsC1 = new TH1F("EvsC1","SigmaE/E vs Cost 1",13, xAxis); EvsC1->SetBinContent( 3, 4.532); EvsC1->SetBinContent( 6, 3.861); EvsC1->SetBinContent( 9, 3.808); EvsC1->SetBinContent(12, 3.795); EvsC1->SetBinError( 3, 0.066); EvsC1->SetBinError( 6, 0.061); EvsC1->SetBinError( 9, 0.042); EvsC1->SetBinError( 12, 0.042); EvsC1->SetMarkerColor(4); EvsC1->SetMarkerStyle(25); EvsC1->SetMarkerSize(1.3); EvsC1->SetLineColor(4); EvsC1->SetLineWidth(1); g1 = new TGraphErrors(4); g1->SetLineColor(4); g1->SetLineWidth(2); g1->SetLineStyle(1); g1->SetMarkerColor(4); g1->SetMarkerStyle(25); g1->SetMarkerSize(1.3); g1->SetPoint(0,1147, 4.532); g1->SetPoint(1,1747, 3.861); g1->SetPoint(2,2247, 3.808); g1->SetPoint(3,2897, 3.795); g1->SetPointError(0,0,0.066); g1->SetPointError(1,0,0.061); g1->SetPointError(2,0,0.042); g1->SetPointError(3,0,0.042); TH1 *EvsC2 = new TH1F("EvsC2","SigmaE/E vs Cost 1",13, xAxis); EvsC2->SetBinContent( 3, 3.900); EvsC2->SetBinContent( 6, 3.346); EvsC2->SetBinContent( 9, 3.173); EvsC2->SetBinContent(12, 3.04); EvsC2->SetBinError( 3, 0.057); EvsC2->SetBinError( 6, 0.053); EvsC2->SetBinError( 9, 0.035); EvsC2->SetBinError( 12, 0.032); EvsC2->SetMarkerColor(2); EvsC2->SetMarkerStyle(21); EvsC2->SetMarkerSize(1.3); EvsC2->SetLineColor(2); g2 = new TGraphErrors(4); g2->SetLineColor(2); g2->SetLineWidth(2); g2->SetLineStyle(1); g2->SetMarkerColor(2); g2->SetMarkerStyle(21); g2->SetMarkerSize(1.3); g2->SetPoint(0,1147, 3.900); g2->SetPoint(1,1747, 3.346); g2->SetPoint(2,2247, 3.173); g2->SetPoint(3,2897, 3.04); g2->SetPointError(0,0,0.057); g2->SetPointError(1,0,0.053); g2->SetPointError(2,0,0.035); g2->SetPointError(3,0,0.032); TH1 *EvsC3 = new TH1F("EvsC3","SigmaE/E vs Cost 1",13, xAxis); EvsC3->SetBinContent( 3, 4.000); EvsC3->SetBinContent( 6, 3.610); EvsC3->SetBinContent( 9, 3.234); EvsC3->SetBinContent(12, 3.05); EvsC3->SetBinError( 3, 0.059); EvsC3->SetBinError( 6, 0.053); EvsC3->SetBinError( 9, 0.034); EvsC3->SetBinError( 12, 0.045); EvsC3->SetMarkerColor(6); EvsC3->SetMarkerStyle(24); EvsC3->SetMarkerSize(1.3); EvsC3->SetLineColor(6); g3 = new TGraphErrors(4); g3->SetLineColor(6); g3->SetLineWidth(2); g3->SetLineStyle(1); g3->SetMarkerColor(6); g3->SetMarkerStyle(24); g3->SetMarkerSize(1.3); g3->SetPoint(0,1147, 4.000); g3->SetPoint(1,1747, 3.610); g3->SetPoint(2,2247, 3.324); g3->SetPoint(3,2897, 3.05); g3->SetPointError(0,0,0.059); g3->SetPointError(1,0,0.053); g3->SetPointError(2,0,0.034); g3->SetPointError(3,0,0.045); TH1 *EvsC4 = new TH1F("EvsC4","SigmaE/E vs Cost 1",13, xAxis); EvsC4->SetBinContent( 3, 4.201); EvsC4->SetBinContent( 6, 3.753); EvsC4->SetBinContent( 9, 3.382); EvsC4->SetBinContent(12, 3.287); EvsC4->SetBinError( 3, 0.064); EvsC4->SetBinError( 6, 0.057); EvsC4->SetBinError( 9, 0.042); EvsC4->SetBinError( 12, 0.045); EvsC4->SetMarkerColor(1); EvsC4->SetMarkerStyle(20); EvsC4->SetMarkerSize(1.3); EvsC4->SetLineColor(1); g4 = new TGraphErrors(4); g4->SetLineColor(1); g4->SetLineWidth(2); g4->SetLineStyle(1); g4->SetMarkerColor(1); g4->SetMarkerStyle(20); g4->SetMarkerSize(1.3); g4->SetPoint(0,1147, 4.201); g4->SetPoint(1,1747, 3.753); g4->SetPoint(2,2247, 3.382); g4->SetPoint(3,2897, 3.287); g4->SetPointError(0,0,0.064); g4->SetPointError(1,0,0.057); g4->SetPointError(2,0,0.042); g4->SetPointError(3,0,0.045); EvsC1->SetMinimum(2.8); EvsC1->SetMaximum(5.); EvsC1->SetStats(0); EvsC1->GetXaxis()->SetTitle("TPC Drift Length/mm"); EvsC1->GetXaxis()->SetLabelSize(0.05); EvsC1->GetXaxis()->SetTitleSize(0.065); EvsC1->GetXaxis()->SetTitleOffset(1.1); EvsC1->GetYaxis()->SetNdivisions(505); EvsC1->GetYaxis()->SetTitle("rms_{90}/E_{jet} [%]"); EvsC1->GetYaxis()->SetLabelSize(0.05); EvsC1->GetYaxis()->SetTitleSize(0.065); EvsC1->GetYaxis()->SetTitleOffset(1.1); EvsC1->GetXaxis()->SetRange(2,13); EvsC1->Draw("p"); g1->Draw("ple same"); g2->Draw("ple same"); g3->Draw("ple same"); g4->Draw("ple same"); TLatex * tex = new TLatex(1350,4.75,"|cos#theta|<0.95"); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLatex * tex = new TLatex(1100,4.8,"b)"); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLegend *leg = new TLegend(0.6,0.69,0.8,0.89,NULL,"brNDC"); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL"," 45 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(25); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","100 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","180 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(6); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","250 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("length95_sige.gif"); c1->SaveAs("length95_sige.eps"); }